package com.nlelpct.manage.mapper;
import java.util.List;
import java.util.Collection;

import com.nlelpct.manage.model.entity.SysEmployeeAndRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 员工角色关联表 Mapper 接口
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
public interface SysEmployeeAndRoleMapper extends BaseMapper<SysEmployeeAndRole> {
    int insertBatch(@Param("sysEmployeeAndRoleCollection") Collection<SysEmployeeAndRole> sysEmployeeAndRoleCollection);

    /**
     * 根据员工id查找角色id列表
     * @param employeeId 员工id
     * @return 角色id列表
     */
    List<String> selectRoleIdsByEmployeeId(@Param("employeeId") String employeeId);
}
